﻿ 
 
using Common.EF.Map;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace Api.Mapping.T4
 {
	using Base.Data.Entity;
using Base.Data.Entity.Base;
			#region  t_member_auth_role
     public partial class t_member_auth_roleMap  :EntityBaseMap< t_member_auth_role >    
	{   
        public override void Configure(EntityTypeBuilder<t_member_auth_role> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.member_id).HasMaxLength(50);
builder.Property(t => t.role_id).HasMaxLength(50);

		} 

     }
	 #endregion
					#region  t_member_auth_role_group
     public partial class t_member_auth_role_groupMap  :EntityBaseMap< t_member_auth_role_group >    
	{   
        public override void Configure(EntityTypeBuilder<t_member_auth_role_group> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.member_id).HasMaxLength(50);
builder.Property(t => t.role_group_id).HasMaxLength(50);

		} 

     }
	 #endregion
					#region  t_role_auth_form
     public partial class t_role_auth_formMap  :EntityBaseMap< t_role_auth_form >    
	{   
        public override void Configure(EntityTypeBuilder<t_role_auth_form> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.role_id).HasMaxLength(50);
builder.Property(t => t.fcp_form_id).HasMaxLength(50);

		} 

     }
	 #endregion
					#region  t_role_auth_form_btn
     public partial class t_role_auth_form_btnMap  :EntityBaseMap< t_role_auth_form_btn >    
	{   
        public override void Configure(EntityTypeBuilder<t_role_auth_form_btn> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.role_auth_form_id).HasMaxLength(50);
builder.Property(t => t.btn_id).HasMaxLength(50);

		} 

     }
	 #endregion
					#region  t_role_auth_form_field
     public partial class t_role_auth_form_fieldMap  :EntityBaseMap< t_role_auth_form_field >    
	{   
        public override void Configure(EntityTypeBuilder<t_role_auth_form_field> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.role_auth_form_id).HasMaxLength(50);
builder.Property(t => t.field_id).HasMaxLength(50);

		} 

     }
	 #endregion
					#region  t_role_auth_info
     public partial class t_role_auth_infoMap  :EntityBaseMap< t_role_auth_info >    
	{   
        public override void Configure(EntityTypeBuilder<t_role_auth_info> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.role_id).HasMaxLength(50);

		} 

     }
	 #endregion
					#region  t_role_group_auth_role
     public partial class t_role_group_auth_roleMap  :EntityBaseMap< t_role_group_auth_role >    
	{   
        public override void Configure(EntityTypeBuilder<t_role_group_auth_role> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.role_group_id).HasMaxLength(50);
builder.Property(t => t.role_id).HasMaxLength(50);

		} 

     }
	 #endregion
					#region  t_base_label
     public partial class t_base_labelMap  :EntityBaseMap< t_base_label >    
	{   
        public override void Configure(EntityTypeBuilder<t_base_label> builder)
		{
			base.Configure(builder);

			builder.HasIndex(t => t.api_key);
builder.Property(t => t.api_key).HasMaxLength(60);
builder.HasIndex(t => t.label_key);
builder.Property(t => t.label_key).HasMaxLength(400);
builder.Property(t => t.other_label_key).HasMaxLength(600);
builder.Property(t => t.remark).HasMaxLength(400);

		} 

     }
	 #endregion
					#region  t_base_label_detail
     public partial class t_base_label_detailMap  :EntityBaseMap< t_base_label_detail >    
	{   
        public override void Configure(EntityTypeBuilder<t_base_label_detail> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.base_label_id).HasMaxLength(50);
builder.Property(t => t.lang).HasMaxLength(60);
builder.Property(t => t.label).HasMaxLength(2000);

		} 

     }
	 #endregion
					#region  t_certificate_type
     public partial class t_certificate_typeMap  :EntityBaseMap< t_certificate_type >    
	{   
        public override void Configure(EntityTypeBuilder<t_certificate_type> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.code).HasMaxLength(30);
builder.Property(t => t.name).HasMaxLength(60);

		} 

     }
	 #endregion
					#region  t_department
     public partial class t_departmentMap  :TreeEntityBaseMap< t_department >    
	{   
        public override void Configure(EntityTypeBuilder<t_department> builder)
		{
			base.Configure(builder);

			builder.HasIndex(t => t.code);
builder.Property(t => t.code).HasMaxLength(30);
builder.Property(t => t.name).HasMaxLength(60);
builder.Property(t => t.remark).HasMaxLength(600);
builder.Property(t => t.user_id).HasMaxLength(50);
builder.Property(t => t.alias_user_id).HasMaxLength(50);
builder.Property(t => t.api_key).HasMaxLength(80);

		} 

     }
	 #endregion
					#region  t_iqc_area
     public partial class t_iqc_areaMap  :EntityBaseMap< t_iqc_area >    
	{   
        public override void Configure(EntityTypeBuilder<t_iqc_area> builder)
		{
			base.Configure(builder);

			builder.HasIndex(t => t.code).IsUnique();
builder.Property(t => t.code).HasMaxLength(600);
builder.Property(t => t.name).HasMaxLength(200);
builder.Property(t => t.remark).HasMaxLength(600);
builder.Property(t => t.responsible_user_id).HasMaxLength(50);
builder.Property(t => t.table_code).HasMaxLength(200);

		} 

     }
	 #endregion
					#region  t_member
     public partial class t_memberMap  :EntityBaseMap< t_member >    
	{   
        public override void Configure(EntityTypeBuilder<t_member> builder)
		{
			base.Configure(builder);

			builder.HasIndex(t => t.code).IsUnique();
builder.Property(t => t.code).HasMaxLength(30);
builder.Property(t => t.name).HasMaxLength(60);
builder.Property(t => t.password).HasMaxLength(100);
builder.Property(t => t.phone).HasMaxLength(20);
builder.Property(t => t.user_id).HasMaxLength(50);
builder.Property(t => t.depart_id).HasMaxLength(50);
builder.Property(t => t.remark).HasMaxLength(600);
builder.Property(t => t.area_id).HasMaxLength(50);
builder.Property(t => t.responsible_id).HasMaxLength(50);
builder.Property(t => t.superior_lcp_code).HasMaxLength(20);
builder.Property(t => t.api_key).HasMaxLength(80);

		} 

     }
	 #endregion
					#region  t_menu
     public partial class t_menuMap  :t_menuBaseMap< t_menu >    
	{   
        public override void Configure(EntityTypeBuilder<t_menu> builder)
		{
			base.Configure(builder);

			
		} 

     }
	 #endregion
					#region  t_menuBase
     public partial class t_menuBaseMap <T> :TreeEntityBaseMap< T >where T :  t_menuBase    
	{   
        public override void Configure(EntityTypeBuilder<T> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.label).HasMaxLength(120);
builder.Property(t => t.label_base_label_id).HasMaxLength(50);
builder.Property(t => t.fcp_form_id).HasMaxLength(50);
builder.Property(t => t.menu_param).HasMaxLength(400);
builder.Property(t => t.menu_icon).HasMaxLength(100);
builder.Property(t => t.menu_style).HasMaxLength(100);

		} 

     }
	 #endregion
					#region  t_notice
     public partial class t_noticeMap  :EntityBaseMap< t_notice >    
	{   
        public override void Configure(EntityTypeBuilder<t_notice> builder)
		{
			base.Configure(builder);

			builder.HasIndex(t => t.title);
builder.Property(t => t.title).HasMaxLength(30);
builder.Property(t => t.content).HasMaxLength(600);
builder.Property(t => t.org_ids).HasMaxLength(600);
builder.Property(t => t.platform).HasMaxLength(50);

		} 

     }
	 #endregion
					#region  t_organization
     public partial class t_organizationMap  :TreeEntityBaseMap< t_organization >    
	{   
        public override void Configure(EntityTypeBuilder<t_organization> builder)
		{
			base.Configure(builder);

			builder.HasIndex(t => t.code);
builder.Property(t => t.code).HasMaxLength(30);
builder.Property(t => t.name).HasMaxLength(60);
builder.Property(t => t.api_url).HasMaxLength(60);
builder.Property(t => t.alias_code).HasMaxLength(60);
builder.Property(t => t.remark).HasMaxLength(600);
builder.Property(t => t.api_key).HasMaxLength(80);
builder.Property(t => t.qms_bu_code).HasMaxLength(80);

		} 

     }
	 #endregion
					#region  t_role
     public partial class t_roleMap  :EntityBaseMap< t_role >    
	{   
        public override void Configure(EntityTypeBuilder<t_role> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.code).HasMaxLength(30);
builder.Property(t => t.name).HasMaxLength(60);
builder.Property(t => t.remark).HasMaxLength(600);

		} 

     }
	 #endregion
					#region  t_role_group
     public partial class t_role_groupMap  :EntityBaseMap< t_role_group >    
	{   
        public override void Configure(EntityTypeBuilder<t_role_group> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.code).HasMaxLength(30);
builder.Property(t => t.name).HasMaxLength(60);
builder.Property(t => t.remark).HasMaxLength(600);

		} 

     }
	 #endregion
					#region  t_role_org
     public partial class t_role_orgMap  :EntityBaseMap< t_role_org >    
	{   
        public override void Configure(EntityTypeBuilder<t_role_org> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.role_id).HasMaxLength(50);
builder.Property(t => t.role_org_id).HasMaxLength(50);

		} 

     }
	 #endregion
					#region  t_user
     public partial class t_userMap  :EntityBaseMap< t_user >    
	{   
        public override void Configure(EntityTypeBuilder<t_user> builder)
		{
			base.Configure(builder);

			builder.HasIndex(t => t.code).IsUnique();
builder.Property(t => t.code).HasMaxLength(30);
builder.Property(t => t.name).HasMaxLength(60);
builder.Property(t => t.remark).HasMaxLength(600);
builder.Property(t => t.user_lcp_code).HasMaxLength(60);
builder.Property(t => t.depart_id).HasMaxLength(50);
builder.Property(t => t.phone).HasMaxLength(20);
builder.Property(t => t.user_post_id).HasMaxLength(50);
builder.Property(t => t.position_code).HasMaxLength(100);
builder.Property(t => t.sequ_code).HasMaxLength(100);
builder.Property(t => t.sequ_name).HasMaxLength(200);
builder.Property(t => t.subsq_code).HasMaxLength(100);
builder.Property(t => t.subsq_name).HasMaxLength(200);
builder.Property(t => t.job_class).HasMaxLength(200);
builder.Property(t => t.att_files).HasMaxLength(2000);
builder.Property(t => t.api_key).HasMaxLength(80);
builder.Property(t => t.chapter_code).HasMaxLength(80);
builder.Property(t => t.area_id).HasMaxLength(50);
builder.Property(t => t.iqc_area_id).HasMaxLength(50);
builder.Property(t => t.superior_lcp_code).HasMaxLength(20);
builder.Property(t => t.responsible_id).HasMaxLength(50);

		} 

     }
	 #endregion
					#region  t_user_certificate
     public partial class t_user_certificateMap  :EntityBaseMap< t_user_certificate >    
	{   
        public override void Configure(EntityTypeBuilder<t_user_certificate> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.user_id).HasMaxLength(50);
builder.Property(t => t.certificate_id).HasMaxLength(50);
builder.Property(t => t.code).HasMaxLength(30);
builder.Property(t => t.name).HasMaxLength(60);
builder.Property(t => t.agency).HasMaxLength(100);

		} 

     }
	 #endregion
					#region  t_user_post
     public partial class t_user_postMap  :EntityBaseMap< t_user_post >    
	{   
        public override void Configure(EntityTypeBuilder<t_user_post> builder)
		{
			base.Configure(builder);

			builder.Property(t => t.code).HasMaxLength(30);
builder.Property(t => t.name).HasMaxLength(60);
builder.Property(t => t.remark).HasMaxLength(600);

		} 

     }
	 #endregion
		 }

 